package com.tarena.lbs.coupon.dao.repository.impl;

import com.tarena.lbs.coupon.dao.mapper.StockMapper;
import com.tarena.lbs.coupon.dao.repository.StockRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class StockRepositoryImpl implements StockRepository {
    @Autowired
    private StockMapper stockMapper;
    @Override
    public void addStock(Integer couponId, Integer count) {
        stockMapper.addStock(couponId, count);
    }
    @Override
    public void updateStock(Integer couponId, Integer count) {
        stockMapper.updateStock(couponId, count);
    }
}
